package com.cx.service.Impl;

import com.cx.dao.T_UserDao;
import com.cx.domain.T_User;
import com.cx.service.T_Userservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class T_UserserviceImpl implements T_Userservice {
    @Autowired
    private T_UserDao  userDao;
    @Override
    public List<T_User> selectall() {
        return userDao.selectall();
    }

    @Override
    public void insertuser(String name, String password, String age, String address) {
        userDao.insertuser(name,password,age,address);
    }

    @Override
    public void updateuser(String id, String name, String password, String age, String address) {
        userDao.updateuser(id,name,password,age,address);
    }

    @Override
    public void deleteuser(String id) {
        userDao.deleteuser(id);
    }
}
